package org.beehoo.web.daily.usermanage.service;

import java.util.Date;

import org.beehoo.web.daily.signin.dao.SignInDAO;
import org.beehoo.web.daily.usermanage.po.UserPO;
import org.beehoo.web.daily.usermanage.vo.UserVO;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Service
@Transactional
public class UserService {
	@Autowired
	private SignInDAO signInDAO;
	
	public UserVO getUser(String userName){
		UserPO po = signInDAO.getUser(userName);
		UserVO vo = null;
		if(po != null){
			vo = new UserVO();
			BeanUtils.copyProperties(po, vo);
		}
		return vo;
	}
}
